<template>
  <!--    线上比赛-->
  <div class="home-background">
    <!--        头部-->
    <div class="header">
      <navbar class="home-nav">
        <div slot="left">
          <i class="el-icon-arrow-left back"></i>
        </div>
        <div slot="center">
          <el-button type="text" class="text">2020鲸意杯油画赛</el-button>
        </div>
        <div slot="right">
          <i class="el-icon-share top-icon"></i>
        </div>
      </navbar>
    </div>
    <!--      <div style="width: 100%;height: 49px"></div>-->
    <div class="join"><el-button type="primary bottom-icon">立即参与</el-button></div>
    <el-button @click="drawer = true" type="primary" class="bottom-drawer">
      <i class="el-icon-arrow-up" style="font-size: 30px;text-align: center;color: white"></i>
    </el-button>

    <el-drawer
      title="规则"
      :visible.sync="drawer"
      :direction="direction"
      :with-header="false"
      :size="700">
        <span class="drawer-span">
          <p>2020鲸意杯油画大赛正式开启。2020年12月15日0:00至2020年12月30日。通过活动底下的按钮上传照片（并且配上简介，需原创）。12月30日24:00累计得票第一名可以获得iPhone 12 Pro Max一台，第二名可以获得小米10手机一台，第三名可以获得高品质油画工具一套。（每人仅限一张作品</p>
        </span>
    </el-drawer>
  </div>
</template>

<script>
import navbar from "../../../components/nav-bar/nav-bar"

    export default {
      name: "online-competition",
      data(){
        return{
          drawer:false,
          direction:'btt',
        };
      },
      components:{
          navbar
      }
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
    background-image: url('../../../assets/img/桌子上的风景.png');
    background-size: cover;
    background-position: center;
  }
  .header{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }
  .home-nav{
    /*background-color: #B0E3FF;*/
    background-color: transparent;
    color: white;
    box-shadow: transparent;
    border: transparent;
  }
  .back{
    color: white;
    font-size: 25px;
    margin-top: 10px;
  }
  .text{
    color: white;
    font-size: 20px;
    margin-top: 2px;
  }
  .top-icon{
    color: white;
    font-size: 26px;
    margin-right: 5px;
    margin-top: 10px;
  }
  .join{
    position: fixed;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 50px;
    margin-right: 20px;
    margin-bottom: 20px;
  }
  .bottom-icon{
    border-radius: 20px;
    background-color: #B0E3FF;
    font-size: 18px;
  }
  .bottom-drawer{
    position: fixed;
    background-color: transparent;
    width: 100%;
    height: 70px;
    box-shadow: 0px -2px 1px rgba(215,215,215,.15);
    bottom: 0;
    border: transparent;
  }
  .bottom-drawer:hover{
    background-color: transparent !important;
    color: transparent;
    border: transparent !important;
  }
  .bottom-drawer:focus{
    background: transparent !important;
    background-color: transparent !important;
    /*color: transparent;*/
    border: transparent !important;
  }
  .drawer-span{
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 20px;
    color: #7f7f7f;
    padding-top: 10px;
  }
  .drawer-span p{
    margin-right: 20px;
    margin-left: 20px;
    bottom: 0;
  }
  .el-drawer.btt{
    height: 700px !important;
  }
</style>
